package com.anlu.pattern.create.factory.abstractFactory;

import com.anlu.pattern.common.entity.Bag;
import com.anlu.pattern.common.entity.Fruit;
import com.anlu.pattern.common.entity.bag.AppleBag;
import com.anlu.pattern.common.entity.fruit.Apple;

/**
 * @author anlu
 * @create 2019/11/26
 **/

public class AppleFactory extends AbstractFactory {

    @Override
    public Fruit getFruit() {
        return new Apple();
    }

    @Override
    public Bag getBag() {
        return new AppleBag();
    }
}
